@extends('layouts.app')
@section('content')
    <div class="continer">
        <div class="container">
            <div class="row">
                <div class="col-sm-9">
                    <div class="card">
                        <div class="card-header">
                            {{$category['name']}}
                        </div>
                        <div class="card-body">
                            @foreach($contents as $content)
                                <ul class="list-group list-group-flush">
                                    <a class="list-group-item"
                                       href="/article/content/{{$content['id']}}.html"> {{$content['title']}}</a>
                                </ul>
                            @endforeach
                        </div>
                    </div>
                    <div class="mt-3">
                        {{$contents->links()}}
                    </div>

                </div>
                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-header">
                            热门文章
                        </div>
                        <div class="card-block">
                            @list(['ishot'=>1,'limit' => 3])
                            <ul class="list-group list-group-flush">
                                <a class="list-group-item" href="{{$field['url']}}"> {{$field['title']}}</a>
                            </ul>
                            @endList
                        </div>
                    </div>
                </div>
            </div>
        </div>
@endsection

